Moved function getLocks

This will fix #95 and also fix #24 that you can toggle sas,rsc or action groups anymore
without a connection after undocking.