Implementation of Maekawa's distributed mutual exclusion algorithm