lib/Operation: Added a blocking mechanism with MAX_RETRY macro