I don't know why it's not in the module, but you can still call the function quite easily. You can use
Win32::API to call
LockFileEx. You can get the necessary file handle by opening the file using
Win32API::File's
createFile or
createFile, or by using Win32API::File's
GetOsFHandle.