[usb transport] Handle ESHUTDOWN during write by dropping the packet

The bulkwriter thread is only active while it's sending data, which
means it's sending a response to something. A shutdown in the middle
of that will mean that the host won't expect the response anymore,
so drop the data and return a failure code.