Add noreturn attribute to the thread entry point method. (Found by -Wmissing-noreturn)