Implemented lockless approach from zns.connect.