Add Lockwait functionality to background partitioning

Add optional lock wait to background partitioning for highly contended tables.  Add support for lock wait to partition_data.py.  Replace C-style opts in partition_data.py with argparse.