only change ownership if uid/gid are provided
consistent option names (uig/gid vs user/group)
retain lock id from IPC::CL

this is useful if the target program wants to know its unique id among other workers
pre-create directories for stop files, if provided
allow different kill timeouts for stop files and signals