write rwlock was incorrect
fixed  rwlock IPC initialization