Edited: Whoops, I figured it out. I needed the Ghost Zapper. Every night, I have gone to the Goth Manor and the other locked house and cleared out the ghosts/poltergeists/spirits.
The houses are still locked, and ghosts still appear every night. Any help? -.-