The locks are filled with recycled water that is stored in water saving ponds [1], but this only reuses 60% of the water and it doesn't address the other issue that if the water level in the natural lakes in Panama interior is too low, then ships will have a harder time navigating between the locks.
[1] <https://maritime-executive.com/article/panama-canal-first-wa...>