I am currently learning about bitcoin transactions and I found out about the scriptPubKey which locks every output until it is spent by using the unlocking script.

My question is who owns the bitcoins before they are spent and unlocked?

For example, I came across a [reddit post](https://www.reddit.com/r/Bitcoin/comments/1mavh9/trustless_bitcoin_bounty_for_sha1_sha256_etc/) that mentions transaction outputs with a hash collision bounty as their locking script:
`OP_2DUP OP_EQUAL OP_NOT OP_VERIFY OP_SHA1 OP_SWAP OP_SHA1 OP_EQUAL`

Am I right to deduce that unless someone finds a collisoin to the specified hash functions these bitcoins are just unspendable and thus belong to nobody?