You have to predict its movements, or trap it in a place where it will have to backtrack towards you. It can get tedious though, sometimes taking almost an hour in between encounters...
I always found it harder to track it. Instead, I'd just do my own thing, and Mesprit would eventually become found in some way. Just let Mesprit come to you, if you want a personal opinion. =]