Add required dirs to locked files list