net: Fix build warning in sock_bindtodevice().