[Android] Initialize shared mode before setting preference

The initialization was done in the constructor of XWalkView
previously. However some preferences need to be set before
creation of any XWalkView instance.
Move the initialization out of XWalkView's constructor and
do initial for runtime before setting preferences.
Merge pull request #2431 from wang16/shared_xwalk_view

[Android] Initialize shared mode before setting preference