Remove race in thrsafe pinger