system server watchdog caused by deadlock

There is deadlock among ActivityManagerService, ActivityTaskManagerService
and ConnectionServiceWrapper. Move stopLockTaskModeInternal out of mGlobalLock scope.
This will remove the deadlock

Bug: 159213837
Bug: 162950591
Test: presubmit
Change-Id: I6aee6f9837bac22e480f42124bfcdba991e0fa1a
(cherry picked from commit 3a17ba2f2560405ee8415d2d652eb3dd3c7449fc)
1 file changed