Frequency-dependent stiffening of semiflexible networks: A dynamical nonaffine to affine transition