This removes just-in-time system availability within the schedule_queued_recipes() loop.

With this patch systems available when eligible queued recipes
are selected are the only ones available for the whole loop.
This removes the problem of intrapriority multi-host deadlocks.

Jaroslav Kortus provided the original patch which was slightly
modified to this one.

Bug: 872187
Change-Id: Ie90f294383c3b9bde42a4c82e4cff1943ff06f25
Change behaviour of scheduled_queued_recipes() to abort
any recipes that cannot be succesfully scheduled.

This is a modified patch submitted by Jaroslav Kortus.

Change-Id: I7abb29d34d2814ce034626d770984aeb56143b4b