Exclude pending items in reconcileAndClean in ModernMediaScanner

If ModernMediaScanner deletes the pending rows which are inserted
between invoking ContentResolver#insert() and
ContentResolver#openFileDescriptor(), it may raise
FileNotFoundException.

Bug: 166063754
Test: manual with test app
Test: atest -c ModernMediaScannerTest
Change-Id: I9567693375f6ea551917f2d1b204580c245d8a65
Merged-In: I9567693375f6ea551917f2d1b204580c245d8a65
(cherry picked from commit 8f9474a4fd43ad1e6d171b59a0cf09a9f60f181b)
2 files changed