[PATCH 3.18 106/120] PM / core: Clear the direct_complete flag on errors