You can mask any terrain by several methods. In your case I'd use a distance shader. If you attach a camera it's the distance from that camera, if you don't attach a camera, it's the distance from 0/0/0. So set a minimum and maximum distance, and mask your close-by terrain and the far terrain. You can use mask or inverted mask.
You can also use the child input on a surface shader for either terrain and mask the surface shader accordingly.
A simple shape can also be used as a mask. In that case set smooth or bevel and a certain percentage, or the separation between terrains is very hard.
I added a simple sample and hope this helps.