(refs #412)Fix repository lock