liblo: support --HEAD builds

Closes #19059.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>