Fixes #5582: remove non working check on lock
Merge pull request #512 from ncharles/bug_5582/dev/remove_check_on_lock

Fixes #5582: remove non working check on lock