[PATCH 6.12 232/466] cleanup: Adjust scoped_guard() macros to avoid potential warning