pthread: cannot copy a pthread_rwlock_t nor a pthread_mutex_t they have to be initialized in-place. added a self pointer for consistency.