Added missing 'defer' helpers.

Fixes compilation issue when building with gcc 4.4, see MESOS-1692 for
more details.

Review: https://reviews.apache.org/r/24569