net: socket: move ktime2ts to ktime header api