Don't try lockfile creation when getting medium already failed

Change-Id: Idbca79b5224358eaaef040365b2b385f2e2af9dd
Set Referer for auto-reload

Change-Id: Ie6b664bcd2021820a5baf158582fce7a07c112af