I added a mutex because of the identification function. Is the identification function called within the same thread as minerloop_async? If this is the case, I can remove the mutexes.