tipc: Fix race condition when creating socket or native port