Use internal mutability for XMLHttpRequest.

Relate #2513