build_externals: Fix build caching for LCG version change
The externals build caching did not work correctly when the LCG version was being changed via a cmake command line argument. Fix this by adding a hash of the extra cmake parameters to the stamp file.
Fixes ATLINFR-3018.
Edited by Frank Winklmeier