Split thread intialisation and handling out of init.c