Fix: pengine: Block restart of resources if any dependent resource in a group is unmanaged

In some cases, an unmanaged resource does not block restart of the resources that it depends on. I produced the simplified regression test according to a kind of large and complicated pengine input from an user.  It's a bit tricky and has taken me quite some time to work out a possible solution without breaking other regression tests. Hope this makes sense.