fix the condition for the lazy open of shared filepointers.