rwlock: add is_locked(), etc.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
objecter: replace client_lock with internal locks

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>