Add check in SyncManager before stopping thread (fixes #2131380)

Change-Id: I0f0dcc9721094ed29fd241b8a71e30ee0717cdfb
1 file changed