wrong method names. they are ``lock`` and ``unlock`` in the code