Fix multinode scheduling when a device is not available
When a multinode job is submitted, the server will check that the required number of devices are available. Later on, if a device is becoming unavailable, the job won't be able to start but the scheduler will start anyway to schedule the remaining devices. This often lead to a long queue on staging.
Migrated from https://projects.linaro.org/browse/LAVA-1285