Merge "sdm: Fix output fences on prepare failure."