Add config check for locks