int server_rwlock_wlock(server_rwlock_t *rwlock);
Returns 0 on error 1 on success
This function acquires a "write-lock" on the supplied initialized rwlock.
Upon successful return there are never any other writers or readers, exclusivity is achieved.