device: fix releasing slaves

Not all masters type have a platform link and so it's wrong to check
for it to decide whether the slave should be really released. Move the
check to master devices that need it (bond, bridge and team).

OVS ports don't need the check because they don't call to platform to
remove a slave.

https://bugzilla.redhat.com/show_bug.cgi?id=1733709
15 jobs for bg/ovs-restart-part2-rh1733709 in 36 minutes and 9 seconds (queued for 3 seconds)
latest
Status Job ID Name Coverage
  Test
passed #463758
allowed to fail
checkpatch

00:00:55

manual #463763
allowed to fail manual
t_centos:7.5.1804
passed #463764
t_centos:7.6.1810

00:26:41

passed #463770
t_debian:10

00:14:28

passed #463769
t_debian:9

00:18:12

passed #463772
t_debian:sid

00:17:58

manual #463771
allowed to fail manual
t_debian:testing
passed #463759
t_fedora:28

00:19:08

passed #463760
t_fedora:29

00:36:07

passed #463761
t_fedora:30

00:30:28

manual #463762
allowed to fail manual
t_fedora:rawhide
passed #463765
t_ubuntu:16.04

00:18:15

passed #463766
t_ubuntu:18.04

00:15:28

manual #463768
allowed to fail manual
t_ubuntu:devel
manual #463767
allowed to fail manual
t_ubuntu:rolling