It doesn't exactly describe my problem, but it's something like that. The difference is that in the topic you sent supposedly the lag happens in specific chunks. In my case it is always happening when entering a chunk that I had never entered before.
I added a video to demonstrate that the lag only happens in singleplayer worlds, I tested it on a server I created and had no lag problem