Then we can easily use the last dirty cap to flush the mdlog. This
will be useful when syncing the whole filesystem.
The delayed_list will hold both dirty and release caps. The dirty
caps will be checked by the dirty_list in each session and it makes
no sense to flush the release caps when syncing the filesystem.
Fixes: https://tracker.ceph.com/issues/44916 Signed-off-by: Xiubo Li <xiubli@redhat.com>