Common problem as the central locking motor packs in. Wont lock when the central locking works and the system senses a fault and reopens all the doors. As it doesnt use the motor when manual locking it locks all the other doors.
Can sometimes be fixed with WD40 but more often than not a replacement unit is required.