mlx4_core: Add helper functions to support MR re-registration