protect metadata loads from multiple threads

Signed-off-by: Jean-Yves Avenard <jyavenard@mythtv.org>