EHO-62 editing a lock now properly retrieves it from db