Improve queue locking mechanism

I have added a test that will hit the site simultaneously in order to ensure that this edge case scenario would still lock properly.  Well, it turns out it didn't.  I believe this is because I was using the variable system which has a lag in registering the setting of variables. I've switched over to using Drupal's lock mechanism to record when a lock is expired or not.