add query for apt lock failure

Change-Id: I5c356d383e92e4939576348fe941431f9236309b
Related-Bug: #1333226