Implement a mutex_destroy function.
Implement a rwlock_destroy function.
Implement a cglock_destroy function.