WaitForSingleObject after vels_avg may not be necessary

It can be probably avoided.