move deadlock detecting to rpc timeout detecting thread