In WT-4442 support for duplicate backup cursors was added. The code changes in session_api.c:__session_open_cursor make it too specific with the statjoin and dup_backup booleans at that top level.
The original code changes came from WT-1315.