Work around buggy ATS implimentation in vmware.

Patch objained from mav@

Code has not been upstreamed into FreeBSD at the time of this commit.

Ticket: #5257