Filebeat locking the file

I think this was solved in: Filebeat holding deleted files which consumes disk space