Bug 983631 - [Messages] After deleting a message thread the notification persists forever.

* Add closeNotificationsForThread api and make it return as promise
* Apply julien's promise-based test case
Merge pull request #17630 from steveck-chung/bug-983631

Bug 983631 - [Messages] After deleting a message thread the notification persists forever. r=julienw