LWIS: Keep lock until exiting loop

We still in the loop if we met error. So, we need to keep the lock until
exiting the loop.

Bug: 234888130
Test: GCA, CTS
Signed-off-by: Holmes Chou <holmeschou@google.com>
Change-Id: Ib4b3e8f508777bf6105aece0a3c5302368a4d1be
1 file changed