rwlock trylock functions were wrongly returning EAGAIN instead of EBUSY