lock.py: make main() argv as an argument
lock.py: make main() argv as an argument

Instead of using sys.argv implicitly, which is inconvenient for testing.

Signed-off-by: Loic Dachary <b6eae37fc74638590e3f9030895d42446505d41b@dachary.org>

ivotron/teuthology,dmick/teuthology,SUSE/teuthology,michaelsevilla/teuthology,dreamhost/teuthology,dmick/teuthology,ceph/teuthology,caibo2014/teuthology,ivotron/teuthology,dmick/teuthology,ktdreyer/teuthology,michaelsevilla/teuthology,SUSE/teuthology,ktdreyer/teuthology,robbat2/teuthology,SUSE/teuthology,caibo2014/teuthology,dreamhost/teuthology,ceph/teuthology,robbat2/teuthology