thread: Define ff_mutex_* macros as stub functions when threads are disabled