These are compile time flags, you have to rebuild jemalloc with these flags. One way is to add in deps/Makefile
JEMALLOC_CONFIGURE_OPTS += --with-malloc-conf=narenas:40
jemalloc: .make-prerequisites
Also, make sure you clean prev build, with make distclean