Drugs used in chemotherapy use different ways to stop cancer cells from dividing so they stop growing or die. Phase I trial to study the effectiveness of flavopiridol in treating children who have relapsed or refractory solid tumors or lymphoma.