The GDS's have direct access connections to most chains and hotel rep companies. Meaning that whoever hits enter first will get the HK. The second request will come back UC. Hotels that do not have direct access normall will respond within an hour or so with a UC segment.
I would also think the hotels also have some internal capacity control that when inventory reaches X they show sold out in the GDS.