The seat of the sheriff of Lorn was a small ruined castle located on a hill north of the town of what?