locking left and right phils on update state correctly this time with unlock