Merge "Check the isInUse with the lock held in MessageQueue" into rvc-dev am: 04dc962d1d am: 22e838f439

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11417745

Change-Id: Ib12c88b0ebb8ff8e438212006f79b87bcd6f8f75