rw unlock in unix