Add synchronization to ttlhelper

Because the cancel calls can come from background threads

Test: TimeToLiveHelperTest
Fixes: 347509852
Flag: com.android.server.notification.all_notifs_need_ttl
Change-Id: I447699afa189a9c9dcd8bd476059a66886909cc7
1 file changed