Update protect_lock for cmd_items to write