If they are different mutexes, they are different lock give.
Or to bring it all to call one common function (in which the block occurs).
Or if the code handles locked objects is difficult - use channels.
Or, use lock-free algorithms using atomic package. Read about it in a series of articles https://habrahabr.ru/post/196834