Matching the CaptureTracking change in abd97d9685c07c4787ff22e56c0a7b8963630063, only directly infer captures(none) for readonly+nocapture+willreturn+void. Part of https://github.com/llvm/llvm-project/issues/129090.