Add write-lock to wayland object resource setter
Add read-lock to wayland object resource getter
Aquire read-locks on objects in ws_object_cmp()
This functions args are guaranteed to be read-locked when called