Add DEFER macro, similar to go's defer am: dcda7c0362 am: dbd2efe9cb am: aee37562e9

Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1930677

Change-Id: Id83c5f06626e566e67c576a8716d279b8fc1560d