racket/unit: fix signature handling of `define-values/invoke-unit/infer`

Closes PR 14453