added mutex & return from class udp_listener

Signed-off-by: aLekSer <gdocse@gmail.com>