Small potential mutex deadlock