Thanks for this report.
Yes, this piece of code is needed to provide access to custom post type ‘et_pb_layout’ user capabilities at User Role Editor page when we force it to use own capabilities (‘edit_et_pb_layouts’, etc.) instead of ‘post’ like.
It seems that it stopped working after of some Divi theme update. I changed line
require ET_BUILDER_DIR . ‘layouts.php’;
This change will be available with upcoming version 4.41