A Google security engineer accused Microsoft of treating outside researchers with “great hostility” days before posting details of an unpatched vulnerability in Windows that could be used to crash PCs or gain additional access rights.