Opp: close the transport if opp tx is blocked when bt turning off

Use Case:
1. DUT paired with remote phone.
2. DUT enable wifi hot spot and remote phone connects with it.
3. DUT send file to remote phone.
4. DUT turn off BT during file transfer, observe

Failure:
DUT doesn't display file transfer failed notification and
file transfer progress bar always displayed there.

Root Cause:
When bt is turning off and file is transfering,
in putOperation.abort() of sendFile(), we will send
abort cmd to remote and wait remote's respone. Because there are
many pending data to send and the tx rate is very very low in this use case,
we cannot get the remote's respone. So the stop() in
BluetoothOppObexClientSession will be stuck until BREDR_STOP_TIMEOUT,
After that we cannot save failed file info to database, and cannot
dismiss the file transfer progess bar.

Fix:
close the transport if opp tx is blocked when bt turning off.

Change-Id: I0ff119ba4b78d0924ab86c52d633eeedca6f148e
CRs-Fixed: 2541429
2 files changed