Update rwmutex.c

Added #ifdef LOG before printf() statements.