Added function state_map_is_readonly() to query readonly status.