Add `performBlockWithLock:` to `RKOperationStateMachine` to support changing operation state