android: Fix crash with less than 5 threads