Add return value check for os_thread_get_stack_boundary before touch_pages in the initialization of memory access bound check with hardware trap.
In some Linux systems whose kernel version is smaller than 2.6.38, the macro MADV_HUGEPAGE isn't introduced yet which causes compilation error. Add macro control to fix the compilation error.