Fix bug of GC in fd and timeout objects for lua binding.