identd: Rework lowestSocketId handling