Fix tests
Lock while accessing folder configs