You could either set a gallery password while upgrading or change the index page to indicate that an update is in progress.
I have added the following lines at the top of my .htaccess file, just below the "RewriteBase /" directive:
`# For maintenance
This bit of code redirects all users to the page 'maintenance.html' that is located in the root directory.
When I want to do maintenance I uncomment (remove the '#' symbol) from every line but the first one. Replace 1.2.3.4 with your current IP address so that you can still access the web pages normally.
There are some extra line in there that stop .jpg images being redirected (I use my gallery to host images directly linked elsewhere, and I want them to keep on working)