Camera: Stop waiting if device enters ERROR state

If device runs into ERROR state while being disconnected,
waitUntilDrained() should be able to return asap rather than
until timeout.

Otherwise we run into long delay and potential watchdog bite
during shutdown.

Test: Camera CTS, vendor testing
Bug: 282904703
Change-Id: Id8d328c065e00464f1e13fc537a431cbade51408
1 file changed