Adding semaphores to queue repopulate methods

Having more than one user call the repopulate methods at the same
time was causing problems.  A semaphore has been added to fix the
problem.
Fixing bugs in home and site assignment selection