Fix a Cursor leak

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

Merged by AOSP: https://android-review.googlesource.com/#/c/55101/

Change-Id: I44609478038ed3b5ea605eb9b3189fb28296a8e6
Merge "Fix a Cursor leak" into jb-mr1