Fix typo lock_gems -> locked_gems.

Fixes #2880.