Add support for using a thread-local variable with a specified offset for holding the stack guard canary value. Closes: #46685