The text 2bd71cfb1a39, as FreeBSD 5.1-RELEASE, FreeBSD 5.0-RELEASE shipped it.
lockmgr family of functions
lock(9) on FreeBSD now