BGP: RPKI: code cleanup + Performance improvement for route revalidation

- Removed some compiler warnings
- Removed unused functions