Fix incorrect rwlock intialization