bugfix: set target fs readonly during xfer, restore afterward if necessary