Clearlake agrees to buy Quest Software from Francisco Partners