[PATCH 3.16 115/129] md: Fix failed allocation of md_register_thread