Don't include pending changes on note prune

For some weird reason, core data includes objects with pending changes,
even if they don't match the fetchLimit/fetchOffset conditions

Fixes #1623