An alternative to consider: Transform panel / Upright modes.
These are very easy to batch apply using conventional LrC means, e.g. within default processing at import. And Upright knows to recalculate for each image in its own right, in my experience doing a reliable and efficient job. Sure, sometimes it may be 'led astray' by mis-analysing genuinely tilted items within the photo - but the same equally happens with the Auto button for (crop) straightening.
To build on Richard's reply, use Transform > Level to automatically level a photo. Then create a preset or Sync/Copy with only Upright Mode selected:
That will cause Level to be recalculated for each target photo. (Checking the other boxes will cause all the target photos to get the same angle of leveling as the source, and is a frequent source of confusion.)