Is it required to keep track of the locking of the server within an app?

Hello,
I am facing a problem when developing an app that uses the files of the user via \OCP\Files\File::getContent(). I got a bug report that the server fails once Redis is used for file locking. The corresponding issue contains more detailed information.

Long story short: Do I – as a app developer – need to keep track and be aware of the file locking mechanism in the server core or is this ideally handled under the hood and abstracted from me?

I did neither find anything related to the topic in the docs nor was I able to reproduce the problem.

Can anyone tell me if they use the getContent() method and if yes if you need to do something related to the locking.

Thank you very much!