fix sorting of folders in upload to- list
show unread for locked documents