define and use an internal macro to introduce `Expr(:boundscheck)` (#52077)
To avoid the previous uses of `eval` just to manually introduce
`Expr(:boundscheck)`. The new macro is named `@_boundscheck` and is
intended for internal use only, streamlining our codebase a bit.