librustc: Implement write barriers for borrowing `@mut` to `&`