avoid cursor leak in email provider

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

Change-Id: Iaaffed2c4e90dc4b17ae55fcedb242bf890b3dd5
Fix a Cursor leak

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

Change-Id: I8d837dd50473c3b14806f54ca8a78de14178b0cb
Restore the account using SetupData after rotating the screen.

SetupData will lose data of current account if the user rotates
the screen when checking the account settings. So need to
restore the data with mAccount.

Bug: 8267065
Change-Id: I7dd4696515f5afe95d1c075d6afbf6dd6781df14