lpc1800: fix race condition

Clearing the handled bit before setting the active bit led to a brief
interval during which the ISR would re-handle the endpoint.
lpc1800: Implement ZLP