thread_stack_allocate(): report possible mprotect() errors.