add common socket include file to sockdef.h
unlink the local file linked to the channel when socket is closed
add test code of localchannel