Release locks on error in `splitBranch`.

Closes #280.
 Use `Locker.encache` in `drainRoot`.

Closes #295.