The answer to your question heavily depends on jurisdiction which you don't specify. I will answer for Europe-Greece where I have some knowledge. The procedures might differ between the ANSPs and are subject to change.
how can the controller know that there is not another aircraft approaching out of scope range that is on a collision course with the aircraft leaving or approaching or traversing the boundary of his scope range?
There are several factors affecting that and I would say it's part of the job:
Training and personel
In Greece I know that controllers are specifically requested to setup their CWP in such a way that they can see at least 10 nautical miles from the border of the controlled area and definitely they should see the whole sector at all times. Also if some area is quite busy they have a secondary radar screen (imagine it like a PIP) that can focus in that area. That way they can have a good look of crowded areas without losing the full picture.
Also there is not one controller per sector, there are two. The RO (radar operator) and the planner. It's the planner's job (among others) to coordinate with the neighboring sectors for the trajectory of all incoming flights, and if there will be significant deviations they will notify RO.
Actual handover procedure
When a flight approaches the boundary (geographical or vertical both can happen and are valid) the RO initiates in their CWP the handout sequence. At the same time they switch the plane to the next sector's frequency. The other controller is not supposed to assume control of the flight until the plane calls them (yes there can be errors in frequency switching, that's why planes have the standby frequency on the comms panel). When the plane calls the next sector, the controller assumes control, finishes the handout sequence and the plane is officially theirs and doesn't belong to the previous controller anymore.
If the next controller doesn't accept the handout, the flight returns back to the previous sector controller. The details of that process changed after Helios 552 accident happened;(1) that's why I've said that the procedures might change at the ANSP's discretion.
There are exceptions and nothing is carved in stone:
A flight might have requests that the current controller cannot grant safely: Altitude, higher or lower. Direct to some point outside of the sector. Speed change like for example 250 knots speed restriction waiver for approach sectors. Then the controller currently controlling the flight might handout the flight earlier to the next sector with or without coordination with the next controller depending on the situation.
FIR Design
Also note that the FIR design (sectors, airways and points) is not done randomly but in such manner that there are no conflict points on the boundary of a sector but closer to it's core. So that the surprises on sector seams are minimized. See the appendix for a detailed example.
Finally, for sectors where the handover of climbing or descending flights is routine (TMAs for example), there are predefined altitudes for handover. For example a flight should be at FL210 when crossing the sector boundary. Again, nothing is carved in stone and there might be small deviations. If there are big deviations, the sectors coordinate as I've mentioned before.
Coordination between FIRs
All the above happen between control sectors in the same FIR. When handing over control to other FIRs that is a whole other story. Flights are coordinated via a communications channel, either manually (via telephone) or automatically (via protocols like OLDI). The boundary sector controller of the next FIR expects the flight on a specific point at a specific time. If the flight doesn't show up they start looking for it... They call at the expected frequency, they call at the emergency, they call the previous FIR (and not necessarily with that order).
how each centre knows who has control over the aircraft and if situations could occur where nobody is...?
There is no such thing as nobody is in control when we talk about en-route ATC. The flight is in the control of the sector (and FIR consequently) that "contains" the flight in the 3D space. The fact that you "see" the flight doesn't mean that you control it. It means that you know its presence which is a good thing.
I have to assume there is more than one human at busier control centers all working together. How is that managed? Who controls what?
Please see above the comment about RO and planner. There are also other very good answers on that specific question like this one where you can see somewhere in the end, a
Typical sector radar team
consisting of two people, and from what I see, the left one is the RO equivalent and the right one is the planner equivalent.
Appendix I: Sector design importance explained
Here is an example from Milos sector (aka AC5) of Greece. To declutter the map, I've hidden the coastline, and displayed only the aerodromes. The sector is the black area and the rest of the FIR is in gray. Note that this is not the case in reality, I've just changed the color setup to highlight the area of interest.
To get a better idea of the area, here is what is displayed. Milos island is on the center.
Without getting into the details of the sector as this will be off topic, you can see that the conflict point I was talking about is where the red arrow is. That is MIL VOR-DME located in Milos island. There you have 10 airways(2) converging, being "fed" by Athens airport (LGAV) in the North and Heraklion airport (LGIR) in the South (green arrows). As I've mentioned, the conflict point is almost on the sector's center. It's right in the controller's eyes, away of the "ambiguity" of the sector border.
One might argue that there are 2 more points where airways converge, one in the North (KEA VOR-DME, name not shown) and one Northwest (DDM VOR-DME , name not shown) that are very close to the next sector border. Though this is true, the points are not as big conflict points as MIL VOR-DME because
- KEA and DDM are major navaids for Athens TMA and it's expected to have that many airways converging towards them and
- most of the flights that will cross these points over 250 (Athens TMA vertical limit) will usually be en-route, ergo no unexpected changes in heading and altitude
Also notice that Athens TMA (light coral line) overlaps will AC5. That means southbound departures from LGAV will be handed over to AC5 when they are way in the sector, away from the boundary.
Notes
(1) Many people ask how the Helios 552 accident can be related to the process. It's not related directly. Before Helios accident, the process was as follows: Propose the aircraft to next sector. Next sector accepts the proposal. Previous sector sees that and switches the frequency. That was reversed: the receiving sector is not accepting the handover unless the aircraft calls first. That way it's easier (and faster) to spot flights that for any reason did not call. As you can see, it's not directly related, but it was a change to keep the procedure on the safe side.
(2) For the record these are A10, A14, B26, B34, J56, R32, L617, M601, N134, P32
Acronyms
ANSP
Air Navigation Services Provider
RO
Radar Operator
CWP
Controller Working Position
OLDI
On-Line Data Interchange
TMA
Terminal Maneuvering Area