Make sure platform requirements of the root package are enforced when installing from lock, fixes #1611
Merge branch 'issue1611'