A pin hole lens will never work on an uncooled camera.
The smallest aperture lenses designed for midwave cooled cameras only really reach into the f/5 to f/6 territory(and that's pushing it), whereas a pinhole would be on the order of... well, "effectively" around f/20 to f/30(not a real measurement though).
You would need an extremely intense light source(the sun, for example), and a cooled camera that operates way below the standard 77K to see anything at all.