liblockdev seems like a really good idea, which we're considering
adding to LSB (although the library function names may get changed
along the way so they all have the same prefix).
Is there a reason that no Debian packages are using it?
Depends: libc6 (>= 2.1)
Maintainer: Fabrizio Polacco <email@example.com>
Description: Run-time shared library (libc6) for locking devices.
It provides a reliable way to put an exclusive lock to
devices using _both_ FSSTND and SVr4 methods.