Control a solenoid/relay or whatever your locking system, and change the passcode by the keypad only, no program reupload.