[gps] keep GpsIsLost function and some cleanup