Fix profiler values not being updated (F6) and not being logged
Merge remote-tracking branch 'minetest/master'