Lock index and write is now async