Update peristent repository on visiblity change

Persistent repo should be updated on visiblity change too as there might
be cases where only the visiblity of tasks is impacted. i.e Use minimize
button and unminimize task.

Also handle the case where tasks are marked as not visible eventhough
they should be persisted as visible. E.g leaving desktop and rebooting.

Bug: 376036170
Test: atest DesktopRepositoryTest
Flag: com.android.window.flags.enable_desktop_windowing_persistence
Change-Id: I08f74c944220b6f51d1edb905210665b79eace4f
3 files changed