Add dead lock test case to reveal the problem and prepare for the fix