98986b5 Ticket #47693 - Environment variables are not passed when DS is started via service

Authored and Committed by nhosoi 10 years ago
    Ticket #47693 - Environment variables are not passed when DS is started via service
    
    Description:
    The previous commit 57199b34c9cbe4a703e537633fbe6beab9a94e81
    contained a cherry-pick error.
    Replaced CFG_ONOFF_LOCK_WRITE with CFG_LOCK_WRITE, and
             CFG_ONOFF_UNLOCK_WRITE with CFG_UNLOCK_WRITE