Lock layout while consuming updates for measure

If a layout is requestd during measure due to adapter updates, we
were not blocking it which is a problem. This CL makes sure that
we don't call nested layouts while processing adapter updates.

Bug: 32316425
Bug: 33270009
Test: RecyclerViewLayoutTest#triggerFocusSearchInOnRecycledCallback
Change-Id: I83f3678cf29cadd17deae7c3ec5f7805c08ffdeb
(cherry picked from commit 5c68eb49a2a99f5a61be3b743430bdd5621b31e5)
1 file changed