util-ioctl: only get MTU when iface name is set

This patch fixes a warning message when suricata is started without
giving an interface name on the command line. The code was trying
to get the MTU even if pcap_dev was not set.
af-packet: fix error handling

Only exit from synchronization loop on poll error and not in case
of a timeout.