Core: Add getLocks