Use user.permissions service.

As it's not useful to call hook_permissions we need to use the user.permissions services.

CR https://www.drupal.org/node/2311427

https://www.drupal.org/node/2328411
https://www.drupal.org/node/2338475

Without this patch calling `drush $drupal.d8 role-add-perm registered "delete any article content"` gives '`Could not find the permission: delete any article content                                                                                                                [error]`