Proxy with Pthread Reader/Writers Lock