change next_unused_id prototype to return enum mapistore_error and
pass highest_id by reference.
Update change next_unused_id prototype and backends to match interface