If you don't have an RP yet, you can find work with another company, go on an exit and come back with a new company's visa.

It is illegal in Qatar for an employer to keep your passport. Report the incident to the authorities.