feature #3010: Create run and lock dirs when starting one in CentOS

In CentOS 7 /var/run and /var/lock are tmpfs so the directories for one
daemons must be created in the init script.