Update FSM to use recursive lock.