Release mutexes before calling callbacks