Force locked_version on version_constraint (fixes #637)