If you have deleted a folder by accident, just restore it from your backups.
If you do not have any backups, you shouldn't delete random folders in the first place.
Furthermore, it's often suboptimal to follow random advice from the internet, without thinking through its consequences. A good read on this topic is DontBreakDebian (Ubuntu is based on Debian; but keep in mind that the two are not the same).
/var/lib/apt/lists/lock file (not folder) is solely used by
apt (and its various frontends). It helps preventing multiple instances of
apt to run in parallel (to keep you from installing packages while another install process is running - which could lead to an inconsistent package database).
Software that is not related to package management will not work any more stable or unstable if this folder is missing (or not).
So your real problem (system lockups,...) is not related to this folder.