Locked door is means of egress
Changing the bulb here would have put this exit light into proper operation so that the exit could be found during an emergency. See NEC Article 700 Part B for emergency system circuit wiring. In the Life Safety Code, NFPA 101, see Section 4.5.3.2 for un-obstructed egress. This rule states: In every occupied building or structure, means of egress from all parts of the building shall be maintained