Returns whether the exit in the given direction from the given room is locked or not. The second argument, the direction, must be one of 'north', 'south', 'east', 'west', 'up', or 'down'. While this function is not settable, the locked status of the exit can be set with the flag function.