fixed arr_push deleting pushed object, started thread-safe array
removed one-time while blocks in threadpool.c