Fix nil passwords
Make Bucket#flush block until complete