Update curve_fitting.jl

Added in @sync in the multiple function at line 165.