md/raid5: fix new memory-reference bug in alloc_thread_groups.