[PATCH OLK-6.6 4/5] [Backport] libfs: Replace simple_offset end-of-directory detection