Fix detach and remove of ZIL devices

Mirror devices can only be detached, not removed.
Only top level vdevs can be removed.

Ticket:	#2463
Merge:	releng/9.1.0
(cherry picked from commit 245377154e6b9e3afdaa634d13c530722d0ca113)