Add a CrystalLake::Lock to fix locking issue