Avoid attempting to lock "both channels" when the transport
is UDP.

Macro version of a proposed UDP locking change by Rong Zeng
<rongzeng@us.ibm.com>.

A more transparent cleanup should come later, but this logic
should do the right thing.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>