Moved function getLocks

This will fix #24 that you can toggle sas,rsc or action groups anymore
without a connection after undocking.
Merge remote-tracking branch 'origin/issue-24' into development