[PATCH 4.14 101/195] ubi: block: Fix locking for idr_alloc/idr_remove