namespace with read/write locks (pthread)