ALII-4573 add debugging code and remove amqp_os_socket_setsockblock call...

... that doe snot influence lwIP close.

Pull into bug/4700 and bug/4700 into master

@raensink @karlj-spindance please review.

Signed-off-by: Mike Stitt <mikes@spindance.com>