Fix for set_env_param

Change-Id: I2eb761a958a70d15e39f6d03e2ce82b9ba92a4df
Reviewed-on: http://review.couchbase.org/28326
Tested-by: Ketaki Gangal <ketakigangal@gmail.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-100: high thruput nodgm load

Change-Id: I30a04e774b6fd5e41ac6741bb53eef5581c49664
Reviewed-on: http://review.couchbase.org/28333
Reviewed-by: Ronnie Sun <ronnie@couchbase.com>
Tested-by: Ronnie Sun <ronnie@couchbase.com>