Bug 1051707: Reduce use of proxy methods and generated getters in 'sync' code. r=rnewman

Reviewed in https://bugzilla.mozilla.org/show_bug.cgi?id=1051707