Fix circular import Issue
There is a circular import issue in legacy UI which causes middlewared to crash.
Everything relying on middlewared can be broken
When booting a machine which has this ticket's fix, middlewared should start normally. If it does, we can consider this ticket as fixed.