Added new IndicesLifecycle.Listener method that allows to listen for any IndexShardState internal change.

Closes #4413