Updating version number to 2.40.1-SNAPSHOT following 2.40.0 release