refactor(frontends/lua/leanlua_state): minimize the use of 'friend' directive

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
refactor(frontends/lua/leanlua_state): minimize the use of 'friend' directive