Work around peerlist_lock being held for long times when started with no peers

When starting with no peers peerlist_lock is being held for very long times when
adding peers. In fact it's not being held but being reacquired so fast that the
calling application sits waiting a long time before it's able to add a peer.
9 jobs for workaround_long_locking_time in 3 minutes and 40 seconds (queued for 1 second)