Partially MFC r353967: iflib: call ether_ifdetach and netmap_detach before stop
This MFCs most of the patch except for the parts where the new
iflib_unregister_vlan_handlers() function is called in the pseudo device
register/deregister functions since those functions don't exist in FreeBSD
This re-ordering can fix a potential panic.
Sponsored by: Intel Corporation