Introduced mutex configure check in libprocess.

Review: https://reviews.apache.org/r/27350