[ATFT] Add code to prevent interleaved operation. Add lock to make sure that only one operation is allowed on one device at one time. Bug: b/77496482 Test: Unit tests, local test. Change-Id: Ibbddcee9a5c7554212b33796e25e25382f29861a