MRP-1800 tests: Fix race, fail to start or shutdown vs re-enqueue lock.

Porting/adding the test (conf-sanity.sh: 27c) to check if MRP-1800 is
fixed. The test checks that there is no race between with fail to start
or shutdown vs reenqueue lock.

Signed-off-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Signed-off-by: Rahul Deshmukh <rahul_deshmukh@xyratex.com>
Change-Id: I0a26ab1e8d608e6b5a603adf05b8aeed7c932f67
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/3320
Reviewed-by: Alexander Zarochentsev <alexander_zarochentsev@xyratex.com>
Tested-by: Jenkins
Tested-by: Alexander Lezhoev <alexander_lezhoev@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
MRP-1195 ldlm: ldlm_resource_get: do not unlock unlocked mutex

Change ldlm_resource_get() to distinguish whether ldlm_resource_new()
returned with locked calls res->lr_lvb_mutex).

Signed-off-by: Vladimir Saveliev <vladimir_saveliev@xyratex.com>
Change-Id: Iaa4efab7434ff067c927ec8a169b0ec26b176970
Reviewed-on: http://morpheus.xyus.xyratex.com:8443/gerrit/574
Reviewed-by: Alexander Boyko <Alexander_Boyko@xyratex.com>
Reviewed-by: Alexey Lyashkov <Alexey_Lyashkov@xyratex.com>
Tested-by: Jenkins
Tested-by: Elena Gryaznova <Elena_Gryaznova@xyratex.com>
Reviewed-by: Vitaly Fertman <Vitaly_Fertman@xyratex.com>