2018 IRC does not have any exceptions about when not occupied. When I do the inspections for a new house and sometimes an existing house it is unoccupied.
R310.1.1 Operational constraints and opening control
devices. Emergency escape and rescue openings shall be
operational from the inside of the room without the use of
keys, tools or special knowledge. Window opening control
devices on windows serving as a required emergency
escape and rescue opening shall comply with ASTM
F2090.
R310.4 Bars, grilles, covers and screens. Where bars,
grilles, covers, screens or similar devices are placed over
emergency escape and rescue openings, area wells, or window
wells, the minimum net clear opening size shall comply
with Sections R310.2.1 through R310.2.3, and such devices
shall be releasable or removable from the inside without the
use of a key, tool, special knowledge or force greater than
that required for the normal operation of the escape and rescue
opening.