app/testpmd: allow detaching a port not closed