```build``` variable is set outside of thread. You can't rely on it (all your thread would process latest build)

Inside thread you have ```thread_build``` inside thread.