readers writers lock with ticketting.