refs #484, throw RetryWithWriteLock() if necessary before calling namespace_details::empty
Merge branch 'bugs/484'