fix linux mutex deadlock issue