avoid cursor leak in ClockDatabaseHelper

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

Change-Id: Ib59116f0603cdabc8cdfa520212f6e0fc43ce043