Flint: Use weakref to remove cyclic dependency
This MR fixes a remaining issue from !2647 (merged).
The issue is not critical in sense Flint still work. It only ensure widgets are all released in a clean way at the time there are not anymore needed.
It is critical in sense it fails the CI :-)
Edited by Valentin Valls