Add lock wait timeout, to prevent instant failure from another instance locking the db (smeg python)