What ways are there to hire freelancers for code, without them "owning" the code on their pc? And how likely is it with paid freelancers, that the game wont get to the release?

If you want to give away your money to people to perform task you know nothing about, have at it. The kind of people who take that job aren’t going to be in it to make sure you win in the end.