doc: add sphinx numref compatibility fallback