There used to be an airstrip at Fort Meade, Maryland which was crossed by roads at either end...whenever small aircraft were using it, gates would lower and red lights would flash...just like a railroad crossing. As soon as the plane was past, gates would rise, and you were on your way. It was pretty cool when I was a kid.
I’ve seen several runways that work like that. Usually, what occurs is that an object, in this case a moving vehicle, penetrates protected airspace, called an object free zone, that extends along the final approach course and descent angle to a runway.