Data files and `flock()`

I’ve started working on the webmentions plugin and it will require several data files (YAML) in the user/data folder. I have to be concerned, of course, with concurrent usage. I’ve relied on databases for so long, I just wanted to make sure I wasn’t missing something. Exclusive flock() is still the preferred/only way to manage this situation, yes? Thanks!

The RT Toolbox we already include provides some handy File hanlding methods: https://github.com/rockettheme/toolbox/blob/develop/File/src/File.php

Thanks!