Fix recursive mutex initializer by casting explicitly to mutex_t type

Fixes build errors on Mac OS X 10.8.2. Not sure if this is the best way to fix it, but it seems clean and works.