srrd/branches/multi-threaded: fixed writer_waiting_count bug in rwlock which prevented correct detection of write lock waiting count.