You can map the gate by adding barrier=gate to a node at its location. And to indicate restricted access past the gate, just add access=private to the road.

https://wiki.openstreetmap.org/wiki/Key:barrier#How_to_map_barrier_nodes