Fix a malloc_mutex dependency in mtx.