upload-pack: Check for NOT_SHALLOW flag before sending a shallow to the client.