Adding `get_gamma_or_uniform_mean` function.

Adding `get_gamma_or_uniform_mean` function to `probability` module, and
adding associated tests to `check_probability.c`.