add missing semaphore usage.

the semaphore lock(Objects) was already used in SOME places,
but not ALL, which effectively makes it non-functional at all.

when multiple threads access this dictionary to get access to gtk objects,
the "Objects" dictionary breaks because of this.