To be honest, the whole thing with Magic Room is pretty obviously a glitch, not just the Leftovers part. The lock is an effect of the item and should therefore be negated when the item is not in effect. That's how it's worked for a long time (I think) and I can't think of a good reason to go out of your way to change it.