Coverity fixes.

Change-Id: Ib075ce5602cd78ba25e7b770b7b5d8f96add0498
Fixed xfer worker locking order.

CID:1004286

Change-Id: Ib8799575a16d531dc8ea7f5b62d49854f912dfac