Take shared file lock before collecting file share_info.