Fix NoisePerlin3DEased return value
Fix double free bug when server is shut down

Thanks @oleastre
Merge remote-tracking branch 'minetest/master'
Revert "fuck: you, kwolekr"

This reverts commit 14f4842fdb655787d0e87bd302b42b20ab5d57e4.