When searching allow use of uppercase locations

When searching allow use of uppercase location names, such as AUTHOR
instead of author, automatically lowercasing them. Fixes #1192785 [search errors are replicated automatically](https://bugs.launchpad.net/calibre/+bug/1192785)
Add a test for uppercase locations