clucene: fix --HEAD build

Closes #25191.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>