Fix the reading of the localhost MTU in the HTTP tests

Sometimes the localhost interface has a different name from "lo",
this fix adds a helper function to read the MTU value when the
interface name starts with "lo".