[mod_lua] only bump ts_loaded when loading