ffaudio: Fixed crashes caused by incorrect memory allocation for pthread mutex. Reported by dimaursu16 on IRC.