[bug] deadlock occurs when recursive lock is not allowed