Use read write lock to improve state machine read performance