Fixed bug in perturb_k_list

The bug led to segmentation faults when 'k_per_decade_for_pk'
and 'k_per_decade_for_bao' are set to the same value. Try
'./class test_bug.ini' with the previous version of CLASS to reproduce
the bug. If it does not show up, use Valgrind.