Fix a possible buffer overflow.
Handle mLedgersByIndex better.
Do the initial work on new pathfinding requests without holding the master lock.
Clean up Sustain.