Add locking to host location obtain methods