Old Lua: use the correct method to set the pause state

#5640 changed the methods that pause the game. This fixes the old Lua API to account for that change.