What if we need to upgrade the network via hf? What if we suddenly decide to increase the block size? or implement some other feature which can only be added via hf?
Then what?
Block size changes or other features are not an emergency.
If a hard fork is necessary, and the community agrees to the change, then it can be planned in advance. The most likely outcome is that lightning would not skip a beat. Keep in mind that the only interaction between lightning and main net is opening and closing a multi-sig transaction. A block increase should not, all other things being equal, have any impact on an open multi-sig transaction. A planned hard fork can test in advance and address any potential bugs.
Keep in mind that the entire ethos of Bitcoin development is not to have any hard forks so we are still talking about a very low probability event.
Edit:
People need to close their channels and gtfo immediately I see... At least there is a way but if the LN gets toooooooo big (i mean big corporation level big like microsoft, apple, mcdonalds and starbucks using it, that might be a problem.)
Also if parties are cooperating, they can close their channels instantly. They dont need an onchain transaction to close. I get your point about how potentially it could make hard forks harder, but a hard fork doesn't have to affect lightning at all. It probably wouldnt.