[#1913] Fix getSegmentsFromRealPath for locked filesystem.
Merge branch 'master' into 1918-dedicated-pam