There are flats to the right of the 18th on the Old Course, above the shops. The 4th, 17th and 18th holes at Elie are flanked by houses. The 2nd at Hoylake is flanked by a residential road. I'm sure there are many other examples of genuine links in GB&I with housing adjacent to part of the course.