[pallet-revive] Implement `originIsRoot` precompile method (#12281)