Add mmap barrier before reading zk port file. Add timeout for zk barrier
remove unused code