Update and lock gems