Make ResourceLocks configurable