Factor out UDP nonblocking socket creation

I thought we might need this for UDP reflection, then realized we would
just create the trill_connection for that purpose.  But it's nicer as a
separate function anyway.