fn is_write_locked(state: u32) -> bool