updated lock check on upload