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

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