riscv: Compile instr_size.c into the kernel when DTrace is configured
Reported by: Jenkins
Fixes: 080e56a6c98c ("dtrace: expose dtrace_instr_size() to userland and implement it for riscv")
(cherry picked from commit 92fa22c6a5c41303e3ad98096c9ebe8202418d81)