Mock period functions and non-critical values of L-functions