Merge "Duplicated fileDesc is not closed when input file is not forward-lock content. Fix for bug 4606053."