regex_macros: Fix valgrind errors

While speedier to not perform initialization, these calls to mem::init() are
causing valgrind errors when using compiled macros.

Closes #13969