Serialize processing of recipes to remove deadlocks

Bug: 952587
Change-Id: I434eb1f2f0209f98e6cce9ec8adc0b1f5b56d6ae
Merge "Serialize processing of recipes to remove deadlocks" into release-0.13