! More explicitly turning on and off read-only modes instead of only toggling it between the two states which is possibly affected by a prior incomplete operation

Signed-off-by: Meng Lu <lumeng.dev@gmail.com>