Moved function getLocks

This will fix #24 that you can toggle sas,rsc or action groups anymore
without a connection after undocking.
Merge pull request #179 from Peppie23/issue-24

Moved function getLocks