Wait for the handle flush lock when writing the leaf pages instead
of returning EBUSY.  Reference #1136.