Replace pthread RwLock
with custom implementation
#110211
+571
−198
Merged