Check if the last packet sent was the full endpoint size, in this case flush the host buffers by sending a 0 byte packet

Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>