Locking gems, caused error with hstore.