Redshift might block when no network connectivity is available (if it tries to determine the location automatically). To avoid this blocking the whole status line, immediately release the lock in the query thread.