Readd $runningQueuedFunctions

Dropped by Hashar in change 37509, but needed by later changesets
for supporting anonymous functions.

Change-Id: Ie629624dcc4a83eba09211505d41e438ec5ae304