tevent: add tevent_common_check_double_free() helper function