xroot: add check and test for data file open modes

2 jobs for main in 2 minutes and 58 seconds (queued for 2 seconds)