fix garbage collector for mysql sessions