Fix plugin dependent chain problem on installation

if B plugin depends on A plugin, and C plugin depends on B plugin. 
C plugin can not be activated on install, if static provides in used in
elgg_get_plugins_provides() function.