Implement functions worker_init(), worker() and `worker_exit()

Implement the worker initializing functions worker_init(), worker() and worker_exit() necessary for the multiprocess_insert_buildings() function of the EntityInitializer. These three are implemented together as they are small and co-dependent.

Edited by Pablo de la Mora Lobaton