avoid cursor leak in email provider

When cursor is done, the cursor must be closed to avoid cursor leak.

Change-Id: Iaaffed2c4e90dc4b17ae55fcedb242bf890b3dd5