Wait for the handle flush lock when writing the leaf pages instead
of returning EBUSY.  Reference #1136.
Merge branch 'develop' into log-cursor