layer: Delay resync_priorities fully to commit time

Priorities sync gets done in commit, so don't spend time on it after each
clip addition and layer priority change. The clip addition case has a
performance effect on batched addition of clips.
12 jobs for add-clip-performance in 11 minutes and 43 seconds (queued for 2 seconds)