BOOKKEEPER-795: Race condition causes writes to hang if ledger is fenced (sijie via ivank)