lockCategory

suspend fun lockCategory(categoryId: Int, userId: String)

This method is thread-safe. If category is already locked, throws AlreadyLockedException.