Gay men fantasising about passing on HIV may encourage some to set out to become infected with the virus, a BBC programme has found.