Issue #1832394 by drupsup - Fix for Memcache and Redis Lock Support.
Sync $includes array between Drush and File based versions.
Remove duplicate /entity/entity.module entry.
Fix log msg: we run module_rebuild_cache and not menu_rebuild here.
Remove duplicate drush_module_cache_rebuild() - it is run twice later.
Make sure to use correct functions which are really available in the supported core versions (see Drupal API for reference).
Sync the PHP script with Drush version.
Merge remote-tracking branch 'drupal/7.x-1.x' into 7.x-1.x-o8

Conflicts:
	registry_rebuild.drush.inc
We use Redis for locks.