Tidy up PeaksReady locking slightly and emit it during done_with_peakfile_writes...