Onset of synchronization in weighted scale-free networks