[udisk2] Can't detach before unmounting/locking

The udisks2 backend fails to detach a drive if not first unmounted (that is, it doesn't automatically unmount it (or unlock it if locked) first). The udisks1 backend works as expected.