Fix broken lock_clear() method

After a recent change lock_clear() did not delete locks owned by
a user.
Bump version to 2.2.1