Update keys if they have changed before locking

Signed-off-by: Sandon Van Ness <sandon@inktank.com>