mon: add 'mon sync inject get chunk delay'

Make sync go slower to shake out bugs.

Signed-off-by: Sage Weil <sage@inktank.com>
mon: abort a sync if they fall behind paxos trimming

If we get a GET_CHUNK request but paxos has trimmed past us, fail the sync
and let the peer retry.

Signed-off-by: Sage Weil <sage@inktank.com>
mon: fix osdmap stash, trim to retain complete history of full maps

The current interaction between sync and stashing full osdmaps only on
active mons means that a sync can result in an incomplete osdmap_full
history:

 - mon.c starts a full sync
 - during sync, active osdmap service should_stash_full() is true and
   includes a full in the txn
 - mon.c sync finishes
 - mon.c update_from_paxos gets "latest" stashed that it got from the
   paxos txn
 - mon.c does *not* walk to previous inc maps to complete it's collection
   of full maps.

To fix this, we disable the periodic/random stash of full maps by the
osdmap service.

This introduces a new problem: we must have last one full map (the first
one) in order for a mon that just synced to build it's full collection.
Extend the encode_trim() process to allow the osdmap service to include
the oldest full map with the trim txn.  This is more complex than just
writing the full maps in the txn, but cheaper--we only write the full
map at trim time.

Signed-off-by: Sage Weil <sage@inktank.com>