cpp: cmake: RegexChecks: Improve include usage for portability

Minor tweak to ensure that the boost include directory is searched when doing the boost regex check.

Since these tests are done inside a function scope, remove the save/restore of includes and libraries since this is done automatically due to them not being set in the parent scope.

--------

Testing: All jobs should remain green.