Fix session lock errors upon generating new chunks.