Added static method to spin wait for lock.

Update will spawn a thread which will try to acquire the lock and
execute update.