lib/libc/regex: fix build with REDEBUG defined
(cherry picked from commit 3c78771400e74f5bc54ee8e9a28fbf70190fd250)