I don't think you need to keep this for the whole lifetime of the mutex. You can destroy it after the mutex is created, so just make it a local variable.