Don't call into AM finish-recents-animation while holding onto the WM lock

- By default, only call back to AM to finish the animation from callers
  outside of the system, when we are not holding the WM lock

Bug: 78258614
Test: Not really testable

Change-Id: I89966b1db165b39742a550f3e315bda7da7ce586
4 files changed