put file locking around local plugins file