added a check for apt-get lock