[PATCH 1/3] setupapi/devinst: Factor out get_device().