Refactor: various: avoid setting and checking same variable in CRM_CHECK()
... to avoid any chance of side effects. Even though the current implementation shouldn't have problems, it's safer, and makes static analysis happy.