Variational inference in neural functional prior using normalizing flows: application to differential equation and operator learning problems