rw lock implementation using fcntl,follow UNPv2 IPC