MDL-36789 add integrity checks for cached modinfo