Add globallock and spraylist to bench.py