Add posix comparible rwlock