Fix ghost mode bug
Fix a rare bug which causes the ghost to reenter the ghost house
if a ghost mode switch happens in updatetimers() immediately
after the ghost finished exiting the ghost house