Add ws_object_unlock() and make old unlock methods deprecated

Targets #118