Fixed bug #17511: tx_install_session::write doesn't fix permissions