Issue 4253 - Setting timeout on a sync XHR should throw InvalidAccessErr

fix #4253