Add leaf_page_max to address high latencies.  If compact times out, keep
going anyway.  #869