Covering factors of the dusty obscurers in radio-loud and radio-quiet quasars