Put lock on shared dir to avoid 2 KQuery race condition between 2 KQueryServer instances