[tests] new features for running tests: log to console, kill services again after timeout
Release mainaction before stopping workers
[lua] force garbage collection
[lua] add per lua_State lock