Bug / Defect nextcloud videopreview

If you open a video in nextcloud and stream it with ffmpeg and close it again, it takes very long time till the write lock has been released, why?
Thats very anying as videos cannot be previewed efficient before deleting them.
Backend : Ubuntu 20.04 64 Bit
Nextcloud: Version 20 latest