Move thread create and join methods to umalloc.c