win.rs: update_matrices(): Moved safe code out of unsafe block