Wait for book metadata file to be unlocked

Please catch just the specific exception type(s) for which a retry is appropriate. (For example, we don't want to suppress notification of a bug in our metadata generating code, or running out of memory.)