Added sleep for LuaSource.

It's a temporary solution, the correct solution will be
using a GCond for sleeping (and interrupt the sleep, when
termination request arrives).