loader: move loader_open_device out of HAVE_LIBUDEV block