Non-blocking alternative for synchronising access to critical section