Fixing race condition in role

Fixes easybib/issues#203