Fix issue #1

Fix issue #1 by using staticmethod to prevent unintended conversion of Lock to a method.