mutex locks first iteration done