Didn't use interrupts after all. Door now locks behind you regardless of how you unlock it.