Means for adjusting the length of, or for locking, the spring or damper, e.g. at the end of the stroke