Use shared_ptr with timers.
Fix segfault in ScopedLuaRef::clear_and_call().