[PATCH 3.18 131/134] md: Fix failed allocation of md_register_thread