### Summary

lookup function fails - lookup('ansible.builtin.ini', ...)

Ansible ini is using the function 'readfp'  on Configmap this function was [removed ](https://issues.apache.org/jira/browse/SVN-4899#:~:text=Description,3.12%20(due%20October%202023).) on python 3.12


### Issue Type

Bug Report

### Component Name

ansible.builtin.ini

### Ansible Version

```console
$ ansible --version
ansible [core 2.15.3]
  config file = /home/liss/webnews/pyramid-rt4/ansible/ansible.cfg
  configured module search path = ['/home/liss/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/liss/.local/lib/python3.12/site-packages/ansible
  ansible collection location = /home/liss/webnews/pyramid-rt4/ansible/collections
  executable location = /home/liss/.local/bin/ansible
  python version = 3.12.0rc1 (main, Aug  6 2023, 17:56:34) [GCC 9.4.0] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True
```


### Configuration

```console
# if using a version older than ansible-core 2.12 you should omit the '-t all'
$ ansible-config dump --only-changed -t all
```


### OS / Environment

"Ubuntu 20.04.6 LTS" on WSL

### Steps to Reproduce

- name:
  set_fact:
    planning_service_monitor_consul_token: "{{ lookup('ansible.builtin.ini', 'consul_token', file='/tmp/pyr_tmp', section='Consul', allow_no_value=True) }}"


### Expected Results

Success

### Actual Results

```console
fatal: [localhost]: FAILED! =>
  msg: 'An unhandled exception occurred while running the lookup plugin ''ansible.builtin.ini''. Error was a <class ''AttributeError''>, original message: ''ConfigParser'' object has no attribute ''readfp''. ''ConfigParser'' object has no attribute ''readfp'''
```


### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct
for fn in sorted(glob.glob(fact_path + '/*.fact')):
            
            fact_base = os.path.basename(fn).replace('.fact', '')
            failed = None
            try:
                executable_fact = stat.S_IXUSR & os.stat(fn)[stat.ST_MODE]
            except OSError as e:
                failed = 'Could not stat fact (%s): %s' % (fn, to_text(e))
                local[fact_base] = failed
                module.warn(failed)
                continue
            if executable_fact:
                try:
                    
                    rc, out, err = module.run_command(fn)
                    if rc != 0:
                        failed = 'Failure executing fact script (%s), rc: %s, err: %s' % (fn, rc, err)
                except (IOError, OSError) as e:
                    failed = 'Could not execute fact script (%s): %s' % (fn, to_text(e))
                if failed is not None:
                    local[fact_base] = failed
                    module.warn(failed)
                    continue
            else:
                
                out = get_file_content(fn, default='')
            try:
                
                out = to_text(out, errors='surrogate_or_strict')
            except UnicodeError: