A nonlocal version of wavefront tracking motivated by Kuramoto-Sakaguchi equation