All doors are being checked after a fault traps partying students in a residential hall, a university says.