Add missing LOCK(cs_main)