Update and lock dependencies