Yes you need to keep the power to GPS if you wanna keep the lock on. Problem with this is it consume some current and may run down your battery sooner.

There are some talk about keeping the USB power alive...cant remember where is the thread now but do a search

Best is just to keep the power to the GPS rather than to all USB devices.