tbm_surface_internal: check the memory validation at macro

No match.