[RE] Fix the crash issue caused by no memory for TLS slot allocation

Re-commit the backport patch from upstream to fix the crash issue. This time the missing ```thread_local_storage.cc``` is added.

@darktears, You can wait for trybot green and merge then, but depends on the trybots not working issue https://crosswalk-project.org/jira/browse/XWALK-873.