I think this is a bug (https://github.com/ansible/ansible/issues/16833) where file lookup doesn’t get sudo permission on localhost even with become=true. In my testing, shell command on localhost requiring sudo works fine with become=true.
lookups are not affected by become, they always execute in the context
of the user running ansible.