Moved the errno functions patching to wine_pthread_init_thread so that it's done early enough now that kernel is only loaded later on.