Fix cross-process cursor logic.

This fixes some issues with our cross-process cursor handling,
per Jeff Brown's recommendations.

Bug 5220669

Change-Id: If6599f0e7986cc4cc678b2123fcd694973b42034
4 files changed