use kthread for multi-threading

Bwa-mem should have better performance with many CPU cores.