Interplay between the glassy transition and granular superconductivity in organic materials