You just put a signal at both ends of the passing loop. Just the way they’re signaled in real life - one signal to authorize a train into the loop, one to authorize movements out of the loop.
Path based signals (nor pre-signals for that matter) didn’t exist in plain original TTD and constructing such track layouts was easy and straightforward.