Check for duplicate id in crush map

Return -EEXIST on duplicate id
BUG FIX: Mix error returns and IDs
  Add optional argument to return generated ID

fixes: #6246

Signed-off-by: David Zafman <david.zafman@inktank.com>