[ARM] Fix thread struct allocator for SMP case