Fix lock initialization
Merge pull request #253 from bbfsdev/235_fix_tcp_init

Fix lock initialization