2202: Behavior of read-only maps: Fix handling of read-only modified maps on close