rwmutex: compile fix

Signed-off-by: Tim Blechmann <tim@klingt.org>