[PATCH 4.14 167/183] md: Fix failed allocation of md_register_thread