[ptp] Terminate data transfers according to PTP spec

PTP requires a 0-byte packet to be sent after a data transfer
if the transfer size was a multiple of the packet size.
This fixes a problem where certain files could not be imported
by iPhoto.