Remove: unref callback. It is useless
Rename "free" callback to "deinit" callback
Add rw lock destroying on object destruction