Temporarily flip ashift value when we are about to replace a device.
This allows replacing disk in a previously created ashift=9 pool with
a real 512-byte sector drive.

Ticket: #3486