LIVEOAK-567 Find and fix possible concurrency issues in scripts resources