int server_rwlock_destroy(server_rwlock_t *rwlock);
This function destroys the supplied initialized rwlock. Do not use this rwlock instance again without re-initializing it. Deadlock may otherwise ocurr.
Returns 0 on error 1 on success