lua : add a pure lua implementation of "require"

this allows to call coroutine.yield() from within a required
script.

this is alimitation of lua. fix bug 10246